﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Dissemination.MVC.ViewModels.SurveyResultAndSeminarViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<asp:Literal runat="server" Text="<%$ Resources:Literals, ApplicationTitle%>" /> - Reporter Management Page
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h1>Reporter Management Page</h1>

    <p>&nbsp;</p>

    <h2>Surveys</h2>

    <p>&nbsp;</p>

    <ul class="elements-list">
        <li class="first">
            <div class="cell350 flota">Name</div>
            <div class="cell110 flota"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>

    <% foreach (var item in Model.SurveyResults) {%>

        <li>
            <div class="cell350 flota">
                <%= Html.ActionLink(item.Survey.SurveyPeriod + " "  + item.Survey.SurveyYear, "Details", "SurveyResult", new { id = item.SurveyResultsID }, null)%>
            </div>
            <div class="enlaces flota">
                <%= Html.ActionLink("Fill in", "Edit", "SurveyResult", new { id = item.SurveyResultsID }, null)%>
            </div> 
        </li>    
    <% } %>

    </ul>

    <p>&nbsp;</p>

    <h2>Seminars</h2>

    <p>&nbsp;</p>

    <ul class="elements-list">
        <li class="first">
            <div class="cell110 flota">Code</div>
            <div class="cell350 flota">City</div>
            <div class="cell110 flota"><asp:Literal runat="server" Text="<%$ Resources:Literals, ActionsLiteral%>" /></div>
        </li>

    <% foreach (var item in Model.Seminars) {%>

        <li>
            <div class="cell110 flota">
                <%= Html.ActionLink(item.SeminarCode, "Details", "Seminar", new { id = item.SeminarID }, null)%>
            </div>
            <div class="cell350 flota">
                <%= Html.ActionLink(item.SeminarCity, "Details", "Seminar", new { id = item.SeminarID }, null)%>
            </div>
            <div class="enlaces flota">
                <%= Html.ActionLink("Edit", "Edit", "Seminar", new { id = item.SeminarID }, null)%>
                <%= Html.ActionLink("Delete", "Delete", "Seminar", new { id = item.SeminarID }, null)%>
            </div> 
        </li>    
        
    <% } %>

    </ul>

    <p>&nbsp;</p>

    <div class="enlaces">
        <%= Html.ActionLink("Create new seminar", "Create", "Seminar", new { targetAreaID = Model.TargetArea.TargetAreaID }, null )%>
    </div>

</asp:Content>

